import zipfile
#这里是压缩包的路径
file_path = r"C:\Users\Loong\Desktop\demo\附件.zip"
#读取压缩包中的内容
zip = zipfile.ZipFile(file_path, "r")
#print(zip.namelist()) #读取附件.zip中的内容
for i in zip.namelist():
    bytes = zip.read(i, "rb")
    if b'NSSCTF{' in bytes:
        print(i)